<?php //$this->renderPartial('_form', array('model'=>$formModel)); 
	$mn = "Roles";
	$link = Yii::app()->createUrl('rights/authItem/roles');
	$rg = Rights::t('core', 'Create :type', array(
							':type'=>Rights::getAuthItemTypeName($_GET['type']),
						));
	if($rg=="Create Task"){
		$mn = "Tasks";
		$link = Yii::app()->createUrl('rights/authItem/tasks');
	}
	if($rg=="Create Operation"){
		$mn = "Operation";
		$link = Yii::app()->createUrl('rights/authItem/tasks');
	}
?>
<div class="breadcrumbs" id="breadcrumbs">
	<ul class="breadcrumb">
		<li><i class="icon-home home-icon"></i><a href="#">Home</a></li>
		<li><a href="<?php Rights::getBaseUrl(); ?>">Access Role</a></li>
		<li ><a href="<?php echo $link; ?>"><?php echo $mn; ?></a></li>
		<li class="active"><?php echo Rights::t('core', 'Create :type', array(
			':type'=>Rights::getAuthItemTypeName($_GET['type']),
		)); ?></li>
	</ul>
	<script type="text/javascript">
		try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
	</script>
</div>
<div class="col-xs-12">
	<div class="page-content">
		<div class="page-header">
			<div class="clearfix">
				<div class="pull-left">
					<h1>
						<h1><?php echo Rights::t('core', 'Create :type', array(
							':type'=>Rights::getAuthItemTypeName($_GET['type']),
						)); ?></h1>
					</h1>
				</div>
				<div class="pull-right">
					<div class="btn-toolbar inline middle no-margin">
						<div class="btn-group">
							<a title="Assignments" href="<?php echo Yii::app()->createUrl('rights/assignment/view'); ?>" class="btn btn-sm "><i class="icon-file"></i>&nbsp;&nbsp;Assignments</a>
							<a title="Permissions" href="<?php echo Yii::app()->createUrl('rights/authItem/permissions'); ?>" class="btn btn-sm "><i class="icon-file"></i>&nbsp;&nbsp;Permissions</a>
							<a title="Roles" href="<?php echo Yii::app()->createUrl('rights/authItem/roles'); ?>" class="btn btn-sm "><i class="icon-file"></i>&nbsp;&nbsp;Roles</a>
							<a title="Tasks" href="<?php echo Yii::app()->createUrl('rights/authItem/tasks'); ?>" class="btn btn-sm "><i class="icon-file"></i>&nbsp;&nbsp;Tasks</a>
							<a title="Operations" href="<?php echo Yii::app()->createUrl('rights/authItem/operations'); ?>" class="btn btn-sm "><i class="icon-file"></i>&nbsp;&nbsp;Operations</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="col-xs-12">
			
						<?php $this->renderPartial('_form', array('model'=>$formModel)); ?>
					
		</div><!-- /span -->
		
	</div>
</div>

	
